package ui.changeweeklydetails;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JTextField;
import java.awt.Dialog.ModalityType;
import javax.swing.JLabel;

public class ChangeWeeklyDetailsDialog extends JDialog {

	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			ChangeWeeklyDetailsDialog dialog = new ChangeWeeklyDetailsDialog();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public ChangeWeeklyDetailsDialog() {
		setModalityType(ModalityType.APPLICATION_MODAL);
		setBounds(100, 100, 450, 300);
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[] {0, 0};
		gridBagLayout.rowHeights = new int[]{229, 33, 0};
		gridBagLayout.columnWeights = new double[]{1.0};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
		getContentPane().setLayout(gridBagLayout);
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		GridBagConstraints gbc_contentPanel = new GridBagConstraints();
		gbc_contentPanel.anchor = GridBagConstraints.WEST;
		gbc_contentPanel.fill = GridBagConstraints.VERTICAL;
		gbc_contentPanel.insets = new Insets(0, 0, 5, 0);
		gbc_contentPanel.gridx = 0;
		gbc_contentPanel.gridy = 0;
		getContentPane().add(contentPanel, gbc_contentPanel);
		GridBagLayout gbl_contentPanel = new GridBagLayout();
		gbl_contentPanel.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
		gbl_contentPanel.rowWeights = new double[]{0.0};
		contentPanel.setLayout(gbl_contentPanel);
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.anchor = GridBagConstraints.WEST;
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.fill = GridBagConstraints.VERTICAL;
			gbc_panel.gridx = 0;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.insets = new Insets(0, 0, 5, 0);
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
			{
				JLabel label = new JLabel("Monday");
				GridBagConstraints gbc_label = new GridBagConstraints();
				gbc_label.gridx = 0;
				gbc_label.gridy = 1;
				panel.add(label, gbc_label);
			}
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.anchor = GridBagConstraints.WEST;
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.fill = GridBagConstraints.VERTICAL;
			gbc_panel.gridx = 1;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.insets = new Insets(0, 0, 5, 0);
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
			{
				JLabel label = new JLabel("Monday");
				GridBagConstraints gbc_label = new GridBagConstraints();
				gbc_label.gridx = 0;
				gbc_label.gridy = 1;
				panel.add(label, gbc_label);
			}
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.anchor = GridBagConstraints.NORTHWEST;
			gbc_panel.gridx = 2;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				JLabel lblMonday = new JLabel("Monday");
				GridBagConstraints gbc_lblMonday = new GridBagConstraints();
				gbc_lblMonday.insets = new Insets(0, 0, 5, 0);
				gbc_lblMonday.gridx = 0;
				gbc_lblMonday.gridy = 1;
				panel.add(lblMonday, gbc_lblMonday);
			}
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.anchor = GridBagConstraints.WEST;
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.fill = GridBagConstraints.VERTICAL;
			gbc_panel.gridx = 3;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.insets = new Insets(0, 0, 5, 0);
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
			{
				JLabel label = new JLabel("Monday");
				GridBagConstraints gbc_label = new GridBagConstraints();
				gbc_label.gridx = 0;
				gbc_label.gridy = 1;
				panel.add(label, gbc_label);
			}
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.anchor = GridBagConstraints.WEST;
			gbc_panel.fill = GridBagConstraints.VERTICAL;
			gbc_panel.gridx = 4;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.insets = new Insets(0, 0, 5, 0);
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
			{
				JLabel label = new JLabel("Monday");
				GridBagConstraints gbc_label = new GridBagConstraints();
				gbc_label.gridx = 0;
				gbc_label.gridy = 1;
				panel.add(label, gbc_label);
			}
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.anchor = GridBagConstraints.WEST;
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.fill = GridBagConstraints.VERTICAL;
			gbc_panel.gridx = 5;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.insets = new Insets(0, 0, 5, 0);
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
			{
				JLabel label = new JLabel("Monday");
				GridBagConstraints gbc_label = new GridBagConstraints();
				gbc_label.gridx = 0;
				gbc_label.gridy = 1;
				panel.add(label, gbc_label);
			}
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.fill = GridBagConstraints.BOTH;
			gbc_panel.gridx = 6;
			gbc_panel.gridy = 0;
			contentPanel.add(panel, gbc_panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{1.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel timePanel = new TimePanel();
				GridBagConstraints gbc_timePanel = new GridBagConstraints();
				gbc_timePanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_timePanel.insets = new Insets(0, 0, 5, 0);
				gbc_timePanel.gridx = 0;
				gbc_timePanel.gridy = 0;
				panel.add(timePanel, gbc_timePanel);
			}
			{
				JLabel label = new JLabel("Monday");
				GridBagConstraints gbc_label = new GridBagConstraints();
				gbc_label.gridx = 0;
				gbc_label.gridy = 1;
				panel.add(label, gbc_label);
			}
		}
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			GridBagConstraints gbc_buttonPane = new GridBagConstraints();
			gbc_buttonPane.anchor = GridBagConstraints.NORTH;
			gbc_buttonPane.fill = GridBagConstraints.HORIZONTAL;
			gbc_buttonPane.gridx = 0;
			gbc_buttonPane.gridy = 1;
			getContentPane().add(buttonPane, gbc_buttonPane);
			{
				JButton okButton = new JButton("OK");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancel");
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
	}

}
